/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controller.CoreServlet;

import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import Model.ObjectBean.RequestBean.*;
import Model.ObjectBean.ViewBean.*;
import java.io.PrintWriter;
import javax.servlet.ServletContext;
import Controller.CoreServlet.Ultility.SSCookie_Login;
/**
 *
 * @author Tran Nguyen Anh Tu
 */
public class WelcomeServlet extends HttpServlet {

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {        
        

        response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1.
       
        response.setHeader("Pragma", "no-cache"); // HTTP 1.0. backward compatibility
        
        // Lam cho proxy caches bit day la mot old page
        response.setDateHeader("Expires", -1); // Proxies.

                
         RequestDispatcher dispatcher = request.getRequestDispatcher("/WEB-INF/MainJSP/home.jsp");

         dispatcher.forward(request, response);
    }

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        doGet(req, resp);
    }
    
}
